﻿using System;
using System.Threading.Tasks;

namespace Puppy.Data
{
    public static class ConnectionStringResolverExtensions
    {
        public static Task<string> ResolveAsync<T>(this IConnectionStringResolver resolver)
        {
            return resolver.ResolveAsync(ConnectionStringNameAttribute.GetConnStringName<T>());
        }
    }
}
